.class public Les/kz;
.super Les/my;
.source "SimpleBottomMenu.java"


# instance fields
.field private m:Lcom/estrongs/android/ui/preference/n;

.field private n:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 1

    .line 1
    invoke-direct {p0, p1, p2}, Les/my;-><init>(Landroid/content/Context;Z)V

    const-string p1, "#99ffffff"

    .line 2
    invoke-static {p1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result p2

    iput p2, p0, Les/kz;->n:I

    .line 3
    new-instance p2, Les/kz$a;

    invoke-direct {p2, p0}, Les/kz$a;-><init>(Les/kz;)V

    iput-object p2, p0, Les/kz;->m:Lcom/estrongs/android/ui/preference/n;

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    iget-object v0, p0, Les/kz;->m:Lcom/estrongs/android/ui/preference/n;

    invoke-virtual {p2, v0}, Lcom/estrongs/android/pop/FexApplication;->a(Lcom/estrongs/android/ui/preference/n;)V

    .line 5
    iget-object p2, p0, Les/my;->f:Lcom/estrongs/android/ui/theme/b;

    const v0, 0x7f0602e1

    invoke-virtual {p2, v0}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result p2

    .line 6
    invoke-virtual {p0, p2}, Les/my;->b(I)V

    .line 7
    iget-boolean p2, p0, Les/my;->e:Z

    if-eqz p2, :cond_1

    .line 8
    iget-object p2, p0, Les/my;->f:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {p2}, Lcom/estrongs/android/ui/theme/b;->k()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 9
    invoke-static {p1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Les/kz;->n:I

    goto :goto_0

    .line 10
    :cond_0
    iget-object p1, p0, Les/my;->f:Lcom/estrongs/android/ui/theme/b;

    const p2, 0x7f0602e5

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result p1

    iput p1, p0, Les/kz;->n:I

    :cond_1
    :goto_0
    return-void
.end method


# virtual methods
.method public a(IILandroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;
    .locals 1

    .line 5
    iget-object v0, p0, Les/my;->b:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 6
    invoke-virtual {p0, p1, p2, p3}, Les/kz;->a(Ljava/lang/String;ILandroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/lang/String;ILandroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;
    .locals 1

    const/4 v0, -0x1

    if-eq p2, v0, :cond_0

    .line 1
    iget-object v0, p0, Les/my;->f:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v0, p2}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    goto :goto_0

    :cond_0
    const/4 p2, 0x0

    .line 2
    :goto_0
    new-instance v0, Les/v00;

    invoke-direct {v0, p2, p1}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0, p3}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    .line 4
    invoke-virtual {p0, v0}, Les/kz;->a(Les/v00;)V

    return-object v0
.end method

.method public a()V
    .locals 2

    .line 42
    invoke-super {p0}, Les/my;->a()V

    .line 43
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    iget-object v1, p0, Les/kz;->m:Lcom/estrongs/android/ui/preference/n;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/FexApplication;->b(Lcom/estrongs/android/ui/preference/n;)V

    return-void
.end method

.method protected a(Landroid/widget/TextView;Les/v00;I)V
    .locals 4

    .line 19
    :try_start_0
    invoke-virtual {p1}, Landroid/widget/TextView;->getParent()Landroid/view/ViewParent;

    move-result-object p3

    check-cast p3, Landroid/view/View;

    invoke-virtual {p2, p3}, Les/v00;->a(Landroid/view/View;)V

    .line 20
    invoke-virtual {p2}, Les/v00;->getIcon()Landroid/graphics/drawable/Drawable;

    move-result-object p3

    if-nez p3, :cond_0

    .line 21
    iget-object p3, p0, Les/my;->f:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {p2}, Les/v00;->d()I

    move-result v0

    invoke-virtual {p3, v0}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p3

    .line 22
    invoke-virtual {p2, p3}, Les/v00;->setIcon(Landroid/graphics/drawable/Drawable;)Les/v00;

    .line 23
    :cond_0
    iget v0, p0, Les/my;->h:I

    if-eqz v0, :cond_1

    .line 24
    iget v0, p0, Les/my;->h:I

    invoke-static {p3, v0}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object p3

    :cond_1
    const/4 v0, 0x0

    if-eqz p3, :cond_2

    .line 25
    iget-object v1, p0, Les/my;->b:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700c6

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 26
    invoke-virtual {p3, v0, v0, v1, v1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 27
    :cond_2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->n1()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_4

    .line 28
    invoke-virtual {p2}, Les/v00;->getTitle()Ljava/lang/CharSequence;

    move-result-object v1

    if-nez v1, :cond_3

    .line 29
    iget-object v1, p0, Les/my;->b:Landroid/content/Context;

    invoke-virtual {p2}, Les/v00;->k()I

    move-result v3

    invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 30
    invoke-virtual {p2, v1}, Les/v00;->setTitle(Ljava/lang/CharSequence;)Les/v00;

    .line 31
    :cond_3
    invoke-virtual {p1, v2, p3, v2, v2}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 32
    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 33
    :cond_4
    invoke-virtual {p1, p3, v2, v2, v2}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    const-string p3, ""

    .line 34
    invoke-virtual {p1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 35
    invoke-virtual {p1, v0, v0, v0, v0}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 36
    :goto_0
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setClickable(Z)V

    .line 37
    iget p3, p0, Les/kz;->n:I

    invoke-virtual {p2, p3}, Les/v00;->b(I)Les/v00;

    .line 38
    iget p3, p0, Les/kz;->n:I

    invoke-virtual {p1, p3}, Landroid/widget/TextView;->setTextColor(I)V

    .line 39
    invoke-virtual {p2}, Les/v00;->f()Les/v00$d;

    move-result-object p1

    if-nez p1, :cond_5

    .line 40
    new-instance p1, Les/kz$d;

    invoke-direct {p1, p0}, Les/kz$d;-><init>(Les/kz;)V

    invoke-virtual {p2, p1}, Les/v00;->a(Les/v00$d;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 41
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_5
    :goto_1
    return-void
.end method

.method public a(Les/v00;)V
    .locals 5

    .line 7
    iget-object v0, p0, Les/my;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c0265

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f0901cd

    .line 8
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 9
    iget-object v2, p0, Les/my;->a:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {p0, v1, p1, v2}, Les/kz;->a(Landroid/widget/TextView;Les/v00;I)V

    .line 10
    iget-object v2, p0, Les/my;->a:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 11
    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v3, 0x0

    const/4 v4, -0x1

    invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 12
    invoke-virtual {v1}, Landroid/widget/TextView;->setSingleLine()V

    const/high16 v3, 0x3f800000    # 1.0f

    .line 13
    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    const/16 v3, 0x11

    .line 14
    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    .line 15
    iget-object v3, p0, Les/my;->c:Landroid/view/ViewGroup;

    check-cast v3, Landroid/widget/LinearLayout;

    invoke-virtual {v3, v0, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 16
    new-instance v2, Les/kz$b;

    invoke-direct {v2, p0, v1, p1}, Les/kz$b;-><init>(Les/kz;Landroid/widget/TextView;Les/v00;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 17
    new-instance v1, Les/kz$c;

    invoke-direct {v1, p0, p1}, Les/kz$c;-><init>(Les/kz;Les/v00;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    const/4 p1, 0x1

    .line 18
    invoke-virtual {v0, p1}, Landroid/view/View;->setFocusable(Z)V

    return-void
.end method

.method public h()V
    .locals 1

    .line 1
    iget-object v0, p0, Les/my;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 2
    iget-object v0, p0, Les/my;->c:Landroid/view/ViewGroup;

    check-cast v0, Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    return-void
.end method

.method public i()V
    .locals 5

    .line 1
    iget-object v0, p0, Les/my;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_0

    .line 2
    iget-object v2, p0, Les/my;->a:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/v00;

    .line 3
    invoke-virtual {v2}, Les/v00;->e()Landroid/view/View;

    move-result-object v3

    const v4, 0x7f0901cd

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 4
    invoke-virtual {p0, v3, v2, v1}, Les/kz;->a(Landroid/widget/TextView;Les/v00;I)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method
